package com.msmall.community.common.action.wml;

import com.msmall.base.action.WMLBaseAction;
import com.msmall.community.common.OnlineUser;
import com.msmall.community.user.service.UserManager;

public class LogoutAction extends WMLBaseAction {
	
	private static final long serialVersionUID = 7644577198747664572L;

	private UserManager userManager;
	
	public String logout(){
		OnlineUser.userLogout(getUserid());
		getSession().invalidate();
		return "logout";
	}
	
	public void setUserManager(UserManager userManager) {
		this.userManager = userManager;
	}
}
